package com.zplus.managers.petservices.mappers;

import com.zplus.managers.petservices.entities.AdoptRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.sql.Date;
import java.util.List;

@Mapper
public interface AdoptRequestMapper
{
    int insertAdoptRequest(AdoptRequest ar);

    int dropRequest(AdoptRequest ar);

    int updateRequest(AdoptRequest ar);

    List<AdoptRequest> queryALlRequest(int state);

    List<AdoptRequest> queryRequestByDate(@Param("time") String time);

    AdoptRequest queryRequestById(int id);
}
